package com.cloud.code.socket;

import java.io.Serializable;

public class Message implements Serializable {

    private String msg;

    private MsgType msgType;

    private String fromUser;

    private String toUser;


    public Message() {
    }

    public Message(String msg, MsgType msgType, String fromUser, String toUser) {
        this.msg = msg;
        this.msgType = msgType;
        this.fromUser = fromUser;
        this.toUser = toUser;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getFromUser() {
        return fromUser;
    }

    public void setFromUser(String fromUser) {
        this.fromUser = fromUser;
    }

    public String getToUser() {
        return toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }
}
